#define _CRT_SECURE_NO_WARNINGS 1
int exchangeBits(int num) {
    return ((num & 0xaaaaaaaa) >> 1) + ((num & 0x55555555) << 1);
}